.notification-center-container {
    min-height: 100vh;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 顶部导航栏 */
.header {
    background: #FF8C00;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-icon {
    font-size: 24px;
    font-weight: bold;
}

/* 主要内容 */
.main-content {
    padding: 0;
}

/* 加载和错误状态 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    color: #666;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF8C00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: #666;
}

.error-container {
    text-align: center;
    padding: 50px 20px;
    color: #dc3545;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-text {
    font-size: 16px;
    margin-bottom: 20px;
}

.retry-btn {
    background: #FF8C00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* 通知内容区域 */
.notifications-wrapper {
    background: white;
    min-height: calc(100vh - 60px);
}

/* 队伍名称区域 */
.team-name-section {
    padding: 20px 16px;
    border-bottom: 2px solid #b3b3b3;
}

.team-name {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 通知列表 */
.notifications-list {
    padding: 0;
}

.notification-card {
    background: white;
    border-bottom: 8px solid #f5f5f5;
    padding: 16px;
}

.notification-card:last-child {
    border-bottom: none;
}

/* 通知头部 */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.confirm-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.confirm-btn:hover {
    background: #218838;
}

.confirmed-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
}

/* 通知内容 */
.notification-body {
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-body:hover {
    /* background: #f8f9fa; */
    border-radius: 6px;
    padding: 8px;
    margin: -8px;
}

.notification-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 12px 0;
    white-space: pre-wrap;
}



/* 通知链接 */
.notification-link {
    margin: 12px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #FF8C00;
}

.link-url {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.link-url:hover {
    text-decoration: underline;
}

/* 通知图片 */
.notification-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.notification-image {
    width: 100%;
    height: 120px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    object-fit: cover;
}

.notification-image:hover {
    transform: scale(1.05);
}

/* 通知底部信息 */
/* 确认成员名单 */
.confirmed-members {
    margin: 12px 0;
    padding: 8px 12px;
    background: #f0f8f0;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.confirmed-label {
    font-size: 13px;
    color: #28a745;
    font-weight: 500;
}

.confirmed-names {
    font-size: 13px;
    color: #333;
    margin-left: 4px;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.notification-author {
    color: #666;
}

.notification-time {
    color: #999;
}



/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    margin: 0;
}

/* 发布通知按钮 */
.publish-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e5e5;
}

.publish-btn {
    width: 100%;
    color: white;
    border: none;
    padding: 14px;
    background: #007bff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.publish-btn:hover {
    background: #0056b3;
}

/* 图片预览弹窗 */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.close-preview-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-preview-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 提示信息 */
.success-toast,
.error-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    animation: popIn 0.3s ease-out;
    min-width: 200px;
    justify-content: center;
}

.success-toast {
    background: #28a745;
    color: white;
}

.error-toast {
    background: #dc3545;
    color: white;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.success-icon,
.error-icon {
    font-size: 18px;
    margin: 0;
}

.success-text,
.error-text {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* 删除确认弹窗 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    /* animation: fadeIn 0.1s ease-out; */
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    min-width: 320px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* animation: popIn 0.1s ease-out; */
}

.confirm-header {
    padding: 20px 20px 0 20px;
    text-align: center;
}

.confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.confirm-body {
    padding: 20px;
    text-align: center;
}

.confirm-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.confirm-footer {
    display: flex;
    border-top: 1px solid #e5e5e5;
}

.cancel-btn,
.confirm-btn {
    flex: 1;
    padding: 16px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
    border-right: 1px solid #e5e5e5;
}

.cancel-btn:hover {
    background: #e9ecef;
}

.confirm-btn {
    background: #ffaa00;
    color: white;
}

.confirm-btn:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}